#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)

int is_leap_year(int year)
{
	if ((0 == year % 4 && 0 != year % 100) || (0 == year % 400))
	{
		return 1;
	}
	else
		return 0;
}